package com.caiheng.api.entity.estate;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 物业经理接待日的回复记录对象 reception_day_msg_record
 *
 * @author ruoyi
 * @date 2022-07-14
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("reception_day_msg_record")
public class ReceptionDayMsgRecord implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 业主发送接待记录id
     */
    private Integer receptionId;

    /**
     * 物业经理id
     */
    private Integer managerWxUserId;

    /**
     * 消息类型
     */
    private Integer msgType;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 回复的父节点id
     */
    private Integer parentId;

    /**
     * 回复内容
     */
    private String content;

    /**
     * 回复时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 图片
     */
    private String imgUrl;


    @TableField(exist = false)
    private List<ReceptionDayMsgRecord> recordChild;


    @TableField(exist = false)
    private String userNickName;

    @TableField(exist = false)
    private String userFaceUrl;

    @TableField(exist = false)
    private String managerNickName;

    @TableField(exist = false)
    private String managerFaceUrl;
}
